/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.mphokazi.designpatterns.part1.behavioral.memento;

/**
 *
 * @author mphokazi
 */
public class DietInforCaretaker {
    
    Object objectMement;
    public void saveState(DietInfor dietInfor){
        
        objectMement =dietInfor.save();
    }
    public void restoreState(DietInfor dietInfor)
    {
      dietInfor.restore(objectMement);  
    }
    
}
